package com.day20.ex04;

public class ThreadJionDemo{
    public static void main(String[] args) {
        ThreadJion tj1=new ThreadJion();
        ThreadJion tj2=new ThreadJion();
        ThreadJion tj3=new ThreadJion();
        tj1.setName("康熙");
        tj2.setName("四阿哥");
        tj3.setName("八阿哥");
        tj1.start();
        try{
            tj1.join();
        }catch (InterruptedException e){
            e.printStackTrace();
        }
        tj2.start();
        tj3.start();
    }
}
